package cn.singno.bob.jpa.annotation.core;

import java.util.List;

import com.google.common.collect.Lists;

/**
 * <p>名称：SearchFilterBean.java</p>
 * <p>描述：</p>
 * <pre>
 *    
 * </pre>
 * @author 鲍建明
 * @date 2014年11月6日 下午4:34:36
 * @version 1.0.0
 */
public class SearchFilterBean {


	private String fieldName;
	private SearchOperator operator;
	private List<Object> values;
	

	
	
	public SearchFilterBean(String fieldName, SearchOperator operator, List<Object> values) {
		super();
		this.fieldName = fieldName;
		this.operator = operator;
		this.values = values;
	}

	public SearchFilterBean(String fieldName, SearchOperator operator, Object value){
		this.fieldName = fieldName;
		this.operator = operator;
		this.values = Lists.newArrayList(value);
	}




	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}


	public SearchOperator getOperator() {
		return operator;
	}

	public void setOperator(SearchOperator operator) {
		this.operator = operator;
	}

	public List<Object> getValues() {
		return values;
	}

	public void setValues(List<Object> values) {
		this.values = values;
	}



	@Override
	public String toString() {
		return "SearchFilterBean [fieldName=" + fieldName 
				+ ", operator=" + operator + ", values=" + values + "]";
	}
	
	
	
}
